package com.lg.algorithm.ms;

public class Single {

    private static volatile Single single;

    public static void main(String[] args) {

        Single obj = Single.getObj();

    }

    public static Single getObj() {
        if (single == null) {
            synchronized (single) {
                if (single == null) {
                    single = new Single();
                }
            }
        }
        return single;
    }

}
